package com.ruoyi.syf.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.syf.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "上报记录")
public class EscalationLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value="ID")
    private Long id;

    @ApiModelProperty(value="类别(1http，2TCPSocket)")
    private String type;

    @ApiModelProperty(value="上报数据类别")
    private String escalationType;

    @ApiModelProperty(value="数据ID")
    private String dataId;

    @ApiModelProperty(value="上报数据")
    private String data;

    @ApiModelProperty(value = "上报结果：0成功，1失败")
    private Boolean status;

    @ApiModelProperty(value="错误信息")
    private String error;

    @ApiModelProperty(value="错误详情")
    private String message;

}
